<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>bookList</title>
</head>
<body>
<form th:action="@{/userAccount/customerForm}" type="post">
    <table cellpadding="10" cellspacing="0" border="1">
        <tr>
            <th>书名</th>
            <th>库存</th>
            <th>价格</th>
            <td></td>
        </tr>
        <tr th:each="book:${bookList}">
            <td th:text="${book.bookName}"></td>
            <td th:text="${book.storeNum}"></td>
            <td th:text="${book.bookPrice}"></td>
            <td><input type="checkbox" name="checkBookId" th:value="${book.id}"></td>
        </tr>
        <tr>
            <td colspan="4" style="text-align: center"><input type="submit" value="购买"></td>
        </tr>
    </table>
</form>

</body>
</html>